import { GetAllCropRes } from "../../types/crop";
import request from "../../utils/reuqest";

/** 
 * 查询所有的农作物信息
 * @param {string} page 
  * @param {string} size 
  * @returns
 */
export function getAllCrop(page: number, size: number): Promise<GetAllCropRes> {
    return request.get(`/admin/admin/getAllCrop?page=${page}&size=${size}`);
}